# -*- coding: utf-8 -*-

from staffmanager import oper
from staffmanager.argpare import AnalysisBase
from staffmanager.common import constant
from staffmanager.common import exception


def main():
    print(constant.MENU)
    while True:
        oper_infos = input('—> ')
        oper_obj = AnalysisBase.analysis_params(oper_infos)
        staff = oper.OpAction(oper_obj)
        try:
            staff.action()
        except exception.ActEXception as e:
            print(e.msg)


if __name__ == '__main__':
    main()
